<?php

Class DB extends db_class {
	
	function __construct() {
		parent::connect(
			"localhost",
			Config::getInstance()->dbuser,
			Config::getInstance()->dbpass,
			Config::getInstance()->database
		);
		$this->debug = true;
		$this->auto_slashes = true;
		parent::update_sql("SET NAMES 'utf8'");
	}
	
	/**
	 * @return DB
	 */
	static function getInstance() {
		return parent::getInstance(__CLASS__);
	}

}

?>